package malus.shaofeng.com.beiwomusic.model;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.NoAutoIncrement;
import com.lidroid.xutils.db.annotation.Table;

import org.json.JSONObject;

import java.io.Serializable;

/**
 * Created by aaa on 15-3-10.
 */
@Table(name = "album")
public class Album implements Serializable{
            @Id(column = "album_id")
            @NoAutoIncrement
            private long album_id;// 281,
            @Column(column = "album_name")
            private String album_name;// "滚石香港黄金十年李宗盛精选",
            @Column(column = "image_uri")
            private String image_uri;// "/mnt/res.nmting.com/res/qms/jpg/78/55/78557fec1b1d4972b8854e71e174a7b0.jpg"

    public void parseJSON(JSONObject json){
        if (json!=null){
                      album_id=json.optLong("album_id");
                      album_name=json.optString("album_name");
                      image_uri=json.optString("image_uri");
        }
    }

    public long getAlbum_id() {
        return album_id;
    }

    public void setAlbum_id(long album_id) {
        this.album_id = album_id;
    }

    public String getAlbum_name() {
        return album_name;
    }

    public void setAlbum_name(String album_name) {
        this.album_name = album_name;
    }

    public String getImage_uri() {
        return image_uri;
    }

    public void setImage_uri(String image_uri) {
        this.image_uri = image_uri;
    }
}
